package com.stormrage.entity.exam.rep;

import java.io.Serializable;
import java.util.List;

import com.stormrage.entity.exam.ExmAnswer;

public class ExmExamRep implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = 4985474156839678955L;

	// ------------------------------- Fields -------------------------------

	private Integer seq;

	private Integer id;

	private Integer type;

	private String question;

	private List<ExmAnswer> list;

	// ------------------------------- Fields -------------------------------

	public ExmExamRep() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public List<ExmAnswer> getList() {
		return list;
	}

	public void setList(List<ExmAnswer> list) {
		this.list = list;
	}

	// ------------------------------- Fields -------------------------------

	public static ExmExamRep instance(ExmExamRep entity, Integer seq, List<ExmAnswer> list) {
		entity.setSeq(seq);
		entity.setList(list);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : seq - " + seq + " id - " + id + " question - " + question + " type - " + type
				+ " list - " + list;
	}

}
